const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    component: () => import("@/view/Home.vue"),
    meta: { title: "首页", isShowNavBar: false, isShowTabBar: true },
  },
  {
    path: "/classify",
    component: () => import("@/view/Classify.vue"),
    meta: {
      title: "分类",
      isShowNavBar: false,
      isShowTabBar: true,
      isShowBackIcon: false,
    },
  },
  {
    path: "/shopcar",
    component: () => import("@/view/ShopCar.vue"),
    meta: { isShowNavBar: true, isShowTabBar: true, isShowBackIcon: false },
  },
  {
    path: "/user",
    component: () => import("@/view/User.vue"),
    meta: { title: "个人中心", isShowNavBar: false, isShowTabBar: true },
  },
  {
    path: "/order",
    component: () => import("@/view/Order.vue"),
    meta: {
      title: "订单",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/address",
    component: () => import("@/view/Address.vue"),
    meta: {
      title: "收货地址",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/incaddress",
    component: () => import("@/view/IncAddress.vue"),
    meta: {
      title: "添加地址",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/particulars/:id",
    component: () => import("@/view/Particulars.vue"),
    name: "particulars",
    meta: {
      title: "商品详情",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/mediagoods",
    component: () => import("@/view/MediaGoods.vue"),
    meta: {
      title: "数码电器",
      isShowNavBar: true,
      isShowTabBar: true,
      isShowBackIcon: true,
    },
  },
  {
    path: "/newslist",
    component: () => import("@/view/NewsList.vue"),
    meta: {
      title: "新闻列表",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/newsparticulars/:id",
    component: () => import("@/view/NewsParticulars.vue"),
    meta: {
      title: "新闻详情",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/search",
    component: () => import("@/view/Search.vue"),
    meta: {
      title: "搜索",
      isShowNavBar: false,
      isShowTabBar: false,
      isShowBackIcon: false,
    },
  },
  {
    path: "/searchresult/:value",
    component: () => import("@/view/SearchResult.vue"),
    meta: {
      isShowNavBar: false,
      isShowTabBar: false,
      isShowBackIcon: false,
    },
  },
  {
    path: "/login",
    component: () => import("@/view/Login.vue"),
    meta: {
      title: "登录",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/register",
    component: () => import("@/view/Register.vue"),
    meta: {
      title: "注册",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
    },
  },
  {
    path: "/setting",
    component: () => import("@/view/Setting.vue"),
    meta: {
      title: "设置",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/editaddress/:id",
    component: () => import("@/view/editAddress.vue"),
    meta: {
      title: "编辑地址",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/orderdetail/:orderSerialNum",
    component: () => import("@/view/OrderDetail.vue"),
    meta: {
      title: "订单信息",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/materialflow",
    component: () => import("@/view/MaterialFlow.vue"),
    meta: {
      title: "物流信息",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/history",
    component: () => import("@/view/History.vue"),
    meta: {
      title: "浏览历史",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
  {
    path: "/repassword",
    component: () => import("@/view/RePassword.vue"),
    meta: {
      title: "修改密码",
      isShowNavBar: true,
      isShowTabBar: false,
      isShowBackIcon: true,
      isNeedToken: true,
    },
  },
];
export default routes;
